package com.palazzisoft.balonpie.filter;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.springframework.stereotype.Component;
import org.springframework.web.filter.GenericFilterBean;

@Component
public class CheckFilter extends GenericFilterBean {

    public CheckFilter() {
        
    }

    @Override
    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException,
            ServletException {

        System.out.println("Estoy entrando al filtro custom");
        
        chain.doFilter(req, res);
        
        System.out.println("Estoy saliendo del filtro custom");
    }


}
